//
//  WSAppTools.h
//  GroupFourFM
//
//  Created by dllo on 15/12/22.
//  Copyright © 2015年 GroupFour. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^AppToolsBlock)(id result);
typedef void(^AppToolsErrorBlock)(NSError *error);
@interface WSAppTools : NSObject

+(void)getDataWithURL:(NSString *)urlStr block:(AppToolsBlock)block error:(AppToolsErrorBlock)errorBlock;

+(void)postDataWithURL:(NSString *)urlStr Para:(NSMutableDictionary *)para block:(AppToolsBlock)block Error:(AppToolsErrorBlock)errorBlock;

+(void)getDataWithFileName:(NSString *)fileName block:(AppToolsBlock)block error:(AppToolsErrorBlock)errorBlock;

+ (CGFloat)heightForContent:(NSString *)string width:(CGFloat)width size:(NSInteger)sizes;

@end
